<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="generator" content="wordpress <?PHP bloginfo('version');?>" />

<?PHP
$title= wp_title('',false,right);
if( $title == '') 
	$title= get_bloginfo('name') . ' | '. get_bloginfo('description');
/*
$email = rand(). '@example.com';
$gravatar = 'http://www.gravatar.com/avatar/' . md5(strtolower($email)) . '?d=wavatar&s=1500';
*/
//force update for mythic angel
$gravatar= 'http://dl.dropbox.com/u/58937141/1500x1500.jpg';
?>

<base href="<?php bloginfo('template_url');?>/"></base>

<link rel="alternate" type="application/rss+xml" title="<?php echo $title; ?>" href="<?php bloginfo('rss_url'); ?>" />
<title><?php echo $title; ?></title>
<meta property="og:url" content="<?php if(is_single()) { the_permalink(); } else bloginfo('siteurl'); ?>"/>
<meta property="og:image" content="<?php echo $gravatar; ?>"/>
<meta property="og:type" content="blog"/>
<meta property="og:title" content="<?php echo $title; ?>" />

<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="shortcut icon" href="<?php bloginfo('template_url');?>/images/panda_lunlun_headline_thumb.jpg" />

<script type="text/javascript" src="<?php bloginfo('template_url');?>/lib/jquery-1.3.2.min.js"></script>
<script type="text/javascript" id="rokeya_layout_SRC_JS" src="http://bangla-keyboard-layout.googlecode.com/files/rokeya_layout-4.4.71.js"></script>

<script type="text/javascript" src="<?php bloginfo('template_url');?>/customJS/jquery.customFunctions.js"></script>
<?php
	//wp_head();
?>
</head>

<body>

<script type="text/javascript">
if (typeof banglaLayout == "undefined")
{
	var h = document.getElementsByTagName('head')[0];
	var s = document.createElement('script');
	s.setAttribute('type','text/javascript');
	s.setAttribute('src','<?php echo plugins_url( 'Rokeya_Layout_WP/rokeya_layout-dev.js' , "" );?>');
	h.appendChild(s);
}
</script>

<div id="wrapper" <?PHP if( is_user_logged_in()) echo 'style="margin-top:10px;"'; ?>>
<div id="header">

<div id="nav">
<?PHP if( has_post_thumbnail() && is_single() ) the_post_thumbnail();
else { ?>
<img src="data.pics/<?PHP $templatePath= get_absolute_template_path();$settings=json_decode(file_get_contents($templatePath."/settings.txt"));
echo $settings->title_image; ?>" alt="<?PHP echo $settings->bannerPicAltTagText;?>" title="<?PHP echo $settings->bannerPicAltTagText;?>" style="height: 150px;width:100%"/>
<?PHP } ?>
<ul>
  <li><a class="home" href="<?PHP bloginfo("url");?>">Home</a></li>
	<?PHP wp_list_pages("title_li=&sort_column='modified'&sort_order='exclude'"); ?>
	<?PHP if( is_user_logged_in() == false )
	{
		echo '<li>';
		include_once("lib/oauth-site/Google Button JS.php");
		echo '</li>';
		//die;
	}
	else { ?>
	<script type='text/javascript'> 
	// queue function to run on document.ready
	jQuery(function() {
		var $logoutURL= $('#wp-admin-bar-logout a');
		$logoutURL.attr('href',$logoutURL.attr('href')+'&redirect_to='+window.location);
		$('#wp-admin-bar-site-name a[aria-haspopup]').attr('href','<?PHP echo get_bloginfo('siteurl'); ?>');
	});
	</script>
	<?PHP } ?>
</ul>
</div>
</div> <!--  header div ends here -->
<?PHP //die; ?>